package com.tonicgb.shared.core.crud.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.tonicgb.shared.core.crud.entity.api.BaseEntityApi;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
/**
 * @author zhaiyujin
 * @date 2021-09-01 17:13:54
 * @说明 模型基类
 */
@Data
public abstract class BaseEntity<T> implements BaseEntityApi<T>, Serializable {
    private static final long serialVersionUID = 1L;
//    protected Page<T> page;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty(value = "当前页面",example = "1")
    public  Integer pageNo=1;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ApiModelProperty(value = "页面尺寸",example = "15")
    public  Integer pageSize=15;
}
